package algorithm.invertString;

public class coreAlogrithm {

    public static String exec(String str) {
        // 反转逻辑
        StringBuilder stringBuilder = new StringBuilder(str);
        return stringBuilder.reverse().toString();
    }

    public static void main(String[] args) {
        String str = "123fgh";
        String reserverStr = exec(str);
        System.out.println(reserverStr);
    }
}